import request from '@/request/request'
//任务列表
export function getTaskList(data) {
	return request({
		url: '/business/driver_app/taskList',
		method: 'get',
		data: data
	})
}
// 根据任务获取订单列表
export function orderListByTask(data) {
	return request({
		url: '/business/driver_app/orderListByTask',
		method: 'get',
		data: data
	})
}
//任务详情
export function getTaskDetail(data) {
	return request({
		loading: true,
		url: `/business/driver_app/taskDetail`,
		method: 'get',
		data:data
	})
}

//确认接单
export function confirmOrderReceipt(data) {
	return request({
		loading: true,
		url: `/business/driver_app/confirmTask`,
		method: 'get',
		data: data
	})
}

//开始出发
export function startDeparture(data) {
	return request({
		loading: true,
		url: `/business/driver_app/startingDepart`,
		method: 'get',
		data: data
	})
}

//签到
export function taskSignIn(data) {
	return request({
		loading: true,
		url: `/business/driver_app/taskSignIn`,
		method: 'post',
		data: data
	})
}
//订单详情 收运
export function orderDetail(data) {
	return request({
		loading: true,
		url: `/business/driver_app/orderDetail`,
		method: 'get',
		data: data
	})
}
//订单详情 运输
export function transportationOrderDetail(data) {
	return request({
		loading: true,
		url: `/business/driver_app/transportationOrderDetail`,
		method: 'get',
		data: data
	})
}
// 获取订单详情的油品重量
export function orderOilDetail(data) {
	return request({
		loading: true,
		url: `/business/driver_app/orderOilDetail`,
		method: 'get',
		data: data
	})
}
//提交回执单
export function submitRecyclingForm(data) {
	return request({
		loading: true,
		url: `/business/driver_app/submitRecyclingForm`,
		method: 'post',
		data: data
	})
}

//终止任务 
export function terminateTask(data) {
	return request({
		loading: true,
		url: `/business/driver_app/terminateTask`,
		method: 'post',
		data: data
	})
}

// 获取后台配置的判断定位范围
export function check_in_range(data) {
	return request({
		loading: true,
		url: `/system/config/configKey/check_in_range`,
		method: 'get',
		data: data
	})
}
// /business/residents/notifyDeviceRun
// 电子秤扫码 通知运行
export function notifyDeviceRun(data) {
	return request({
		loading: true,
		url: `/business/residents/notifyDeviceRun`,
		method: 'post',
		data: data
	})
}